﻿using System.Collections.Generic;
using System.Linq;
using QuanLyHopDong.Biz.Model;

namespace QuanLyHopDong.Biz
{
    public class DashboardBiz
    {
        public static List<GetHopDongDuocGiao_Result> GetHopDongDuocGiao(int employeeId)
        {
            using (var db = new HopDongEntities())
            {
                return db.GetHopDongDuocGiao(employeeId).ToList();
            }
        }

        public static List<HopDongByEmployees_Result> HopDongByEmployees()
        {
            using (var db = new HopDongEntities())
            {
                return db.HopDongByEmployees().ToList();
            }
        }
    }
}
